package com.jaws.core.common.util;


/**
 * 雪花算法生成id
 *
 * @author lixin
 * @date 2018-03-29 10:21:18
 * @since v1.0.0
 */
public class SnowflakeIdUtil {
	
	public static boolean isK8s = false;

	public static long generate() {
		if(isK8s){
			return SnowflakeIdK8sUtil.generate();
		}else{
			return SnowflakeIdOldUtil.generate();
		}
	}
}
